//
//  BlueToothListView.h
//  汽车大灯色温蓝牙
//
//  Created by dfwx on 2020/9/10.
//  Copyright © 2020 zhongdaodianzi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>

NS_ASSUME_NONNULL_BEGIN

@protocol BlueToothListViewDelegate <NSObject>

- (void)BlueToothListViewStartScan;
- (void)BlueToothListViewEndScan;
- (void)BlueToothListViewClose;
- (void)BlueToothListViewClickPeripheral:(CBPeripheral *)peripheral;
- (void)BlueToothListViewClickDisconnectPeripheral:(CBPeripheral *)peripheral;

@end

@interface BlueToothListView : UIView
@property (weak, nonatomic) IBOutlet UIView *contentView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *scanButton;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet UIButton *closeButton;
@property (nonatomic, strong) NSArray *dataArray;
@property (nonatomic, strong) NSArray *connectArray;
@property (nonatomic, assign) id <BlueToothListViewDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
